package com.bci.pwtz.mysql.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.BusinessOperateLog;

public interface BusinessOperateLogMapper {
    int deleteByPrimaryKey(Long logId);

    int insert(BusinessOperateLog record);

    int insertSelective(BusinessOperateLog record);

    BusinessOperateLog selectByPrimaryKey(Long logId);

    int updateByPrimaryKeySelective(BusinessOperateLog record);

    int updateByPrimaryKey(BusinessOperateLog record);
    
    List<BusinessOperateLog> selectLogs(@Param("operationType") int operationType,@Param("deviceType") int deviceType,@Param("companyId") Long companyId,@Param("beginTime") String beginTime,@Param("endTime") String endTime,@Param("userid")Long userid,
            @Param("userName") String userName,@Param("benginIndex") int benginIndex, @Param("pageSize") int pageSize);

    int selectLogsNum(@Param("operationType") int operationType,@Param("deviceType") int deviceType,@Param("companyId") Long companyId,@Param("beginTime") String beginTime,@Param("endTime") String endTime,@Param("userid")Long userid,@Param("userName") String userName);
}